home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7262 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: BitMap problem
  5. Date: 13 Apr 1996 11:57:25 +0200
  6. Organization: dis-
  7. Message-ID: <4kntq5$78q@serpens.rhein.de>
  8. References: <4kfesg$sqe@sinsen.sn.no> <1996Apr10.104208.28803@imada.ou.dk>     <4kgqs9$clr@serpens.rhein.de> <1996Apr11.153514.2002@imada.ou.dk> <4kjiim$lhd@serpens.rhein.de> <632.6675T1277T900@cs.ruu.nl>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. wsldanke@cs.ruu.nl (Wessel Dankers) writes:
  12.  
  13. >>>window with the wrong BitMap (the one(s) you allocated manually)
  14. >>>linked to the RastPort, the OS gets annoyed and decides to annoy
  15. >>>you with gurus.
  16.  
  17. >> In fact, you end with gurus if you poke into a windows rastport.
  18. >> And double buffering this way is illegal anyway.
  19.  
  20. >Hmm. How can I AreaDraw() in a window's RastPort then? One *must* link in an
  21. >AreaInfo and a TmpRas somehow.
  22.  
  23. Yes. Maybe that was a bit misleading. A window RastPort is owned by
  24. the window and uses the screens bitmap. Poking the bitmap and also
  25. many other rastport fileds is illegal because the rastport is used
  26. by Intuition too.
  27.  
  28. AreaInfo and TmpRas are allowed although I consider this bad design.
  29. A cleaner method is to clone the windows RastPort and modify the copy.
  30.  
  31. Regards,
  32. -- 
  33.                                 Michael van Elst
  34.  
  35. Internet: mlelstv@serpens.rhein.de
  36.                                 "A potential Snark may lurk in every tree."
  37.